<html>
<head>
	<meta charset="UTF-8">
	<meta content="IE=edge" http-equiv="X-UA-Compatible">
	<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
	<title>3568：DZY Loves Math VII</title>
	<!-- css -->
	<link href="../css/base.min.css" rel="stylesheet">
	<link href="../css/project.min.css" rel="stylesheet">
	
	<!-- favicon -->
	<!-- ... -->
</head>
<body class="page-brand">
	<header class="header header-transparent header-waterfall ui-header">
		<ul class="nav nav-list pull-left">
			<li>
				<a data-toggle="menu" href="#menu">
					<span class="icon icon-lg">menu</span>
				</a>
			</li>
		</ul>
		<a class="header-logo header-affix-hide margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">DZY Loves Math VII</a>
		<span class="header-logo header-affix margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">DZY Loves Math VII</span>
	</header>
	<nav aria-hidden="true" class="menu" id="menu" tabindex="-1">
		<div class="menu-scroll">
			<div class="menu-content">
				<a class="menu-logo" href="../index.html">BZOJ离线题库</a>
				<ul class="nav">
					<li>
						<a class="waves-attach" data-toggle="collapse" href="#problems">题目</a>
						<ul class="menu-collapse collapse in" id="problems">
							<li>
								<a class="waves-attach" href="../index.html">主页</a>
							</li>
							<li>
								<a class="waves-attach" href="../list.html">题目列表</a>
							</li>
						</ul>
					</li>
					<li>
						<a class="collapsed waves-attach" data-toggle="collapse" href="#about">关于</a>
						<ul class="menu-collapse collapse" id="about">
							<li>
								<a class="waves-attach" href="../about.html">关于此项目</a>
							</li>
						</ul>
					</li>
					
				</ul>
			</div>
		</div>
	</nav>
	<main class="content">
		<div class="content-header ui-content-header">
			<div class="container">
				<h1 class="content-heading">
                DZY Loves Math VII                </h1>
                <p>时间限制：20s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  空间限制：512MB</p>			</div>
		</div>
		<div class="container">
			<section class="content-inner margin-top-no">
				<div class="row">
					<div class="col-lg-13 col-md-13">
						<div class="card margin-bottom-no">
							<div class="card-main">
								<div class="card-inner">
									
                                <h3>题目描述</h3><p><p class="a" style="margin: 0cm 0cm 0pt; line-height: 150%"><span style="font-size: medium"><font color="#00000a"><font face="Times New Roman"><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp; 已知</span><span lang="EN-US" style="line-height: 150%; font-family: &quot;Microsoft YaHei Greek&quot;; mso-bidi-font-family: 'Courier New'; mso-fareast-font-family: 微软雅黑">&mu;</span></font><span lang="EN-US" style="line-height: 150%; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">(N)</span><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">，求第</font></span><span lang="EN-US" style="line-height: 150%; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">K</span><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">小的</font></span><span lang="EN-US" style="line-height: 150%; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">N</span><font face="Times New Roman"><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。</span></font></font></span><font color="#00000a"><font face="Times New Roman"><span lang="EN-US" style="font-size: 9pt; line-height: 150%"><o:p></o:p></span></font></font></p>
<p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt; line-height: 150%"><span style="font-size: medium"><font color="#00000a"><font face="Times New Roman"><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">已知</span><span lang="EN-US" style="line-height: 150%; font-family: &quot;Microsoft YaHei Greek&quot;; mso-bidi-font-family: 'Courier New'; mso-fareast-font-family: 微软雅黑">&Phi;</span></font><span lang="EN-US" style="line-height: 150%; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">(N)</span><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">，求</font></span></font></span><font color="#00000a"><span style="font-size: 9pt; line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><a name="__DdeLink__91_2126345570"><span style="font-size: medium"><font face="Times New Roman">第</font></span></a></span><span style="font-size: medium"><span style="mso-bookmark: __DdeLink__91_2126345570"><span lang="EN-US" style="line-height: 150%; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">K</span></span><font face="Times New Roman"><span style="mso-bookmark: __DdeLink__91_2126345570"><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">小的</span></span></font><span lang="EN-US" style="line-height: 150%; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">N</span><font face="Times New Roman"><span style="line-height: 150%; font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。</span></font></span><font face="Times New Roman"><span lang="EN-US" style="font-size: 9pt; line-height: 150%"><o:p></o:p></span></font></font></p>
<p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-size: medium"><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman" color="#00000a">已知</font></span></span><a name="OLE_LINK12"></a><a name="OLE_LINK11"></a><span style="font-size: medium"><a name="OLE_LINK11"><span style="mso-bookmark: OLE_LINK12"><span lang="EN-US" style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-hansi-font-family: 微软雅黑"><font face="Times New Roman" color="#00000a">d</font></span></span></a><font color="#00000a"><span style="mso-bookmark: OLE_LINK11"><span style="mso-bookmark: OLE_LINK12"><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">(N)</span></span></span><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">，求第</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">K</span><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">小的</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">N</span><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">。</font></span></font></span><span lang="EN-US" style="font-size: 9pt"><o:p></o:p></span></p>
<p></p></p><hr/><h3>输入格式</h3><p><div style="text-indent: 21pt"><span style="font-size: medium"><font color="#00000a">共三行，分别表示三个子问题的输入。</font></span></div>
<div style="text-indent: 21pt"><span style="font-size: medium"><font color="#00000a">每行两个正整数，分别表示某个函数值和K。</font></span></div></p><hr/><h3>输出格式</h3><p><p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-size: medium"><font color="#00000a"><font face="Times New Roman"><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">共三行，分别表示三个子问题的答案。</span></font></font></span><font color="#00000a"><font face="Times New Roman"><span lang="EN-US" style="font-size: 9pt"><o:p></o:p></span></font></font></p>
<p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-size: medium"><font color="#00000a"><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">每行一个整数，表示满足条件的第</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">K</span><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">小的</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">N</span><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">。</font></span></font></span><span lang="EN-US" style="font-size: 9pt"><o:p></o:p></span></p>
<p></p></p><hr/><h3>样例输入</h3><pre>【样例输入1】	
1 1
1 1
1 1

【样例输入2】	
1 70926127
219104256 14
123 4
</pre><hr/><h3>样例输出</h3><pre>【样例输出1】
1
1
1
【样例输出2】
233333333
233333333
133040906960896
</pre><hr/><h3>提示</h3><p><p class="a" style="margin: 0cm 0cm 0pt"><span style="font-size: medium"><font color="#00000a"><font face="Times New Roman"><b style="mso-bidi-font-weight: normal"><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">【数据范围】</span></b></font></font></span><font color="#00000a"><font face="Times New Roman"><b style="mso-bidi-font-weight: normal"><span lang="EN-US" style="font-size: 9pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑"><o:p></o:p></span></b></font></font></p>
<p class="a" style="margin: 0cm 0cm 0pt"><span style="font-size: medium"><font color="#00000a"><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>I.|</span><span lang="EN-US" style="font-family: &quot;Microsoft YaHei Greek&quot;; mso-bidi-font-family: 'Courier New'; mso-fareast-font-family: 微软雅黑"><font face="Times New Roman">&mu;</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">(N)|&lt;=1,K&lt;=10^8</span></font></span><font color="#00000a"><span lang="EN-US" style="font-size: 9pt"><o:p></o:p></span></font></p>
<p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-size: medium"><font color="#00000a"><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">II.</span><span lang="EN-US" style="font-family: &quot;Microsoft YaHei Greek&quot;; mso-bidi-font-family: 'Courier New'; mso-fareast-font-family: 微软雅黑"><font face="Times New Roman">&Phi;</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">(N)&lt;=10^10,K&lt;=1000</span></font></span><font color="#00000a"><span lang="EN-US" style="font-size: 9pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑"><o:p></o:p></span></font></p>
<p class="a" style="margin: 0cm 0cm 0pt 21pt; text-indent: 21pt"><span style="font-size: medium"><font color="#00000a"><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">满足答案不超过</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">10^12</span></font></span><font color="#00000a"><span lang="EN-US" style="font-size: 9pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑"><a name="_GoBack"></a><o:p></o:p></span></font></p>
<p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-size: medium"><font color="#00000a"><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">III.</span><span lang="EN-US" style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-hansi-font-family: 微软雅黑"><font face="Times New Roman"> d</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">(N)&lt;=10^7,K&lt;=50</span></font></span><font color="#00000a"><span lang="EN-US" style="font-size: 9pt"><o:p></o:p></span></font></p>
<p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-size: medium"><font color="#00000a"><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman">满足答案不超过</font></span><span lang="EN-US" style="font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑">10^100</span></font></span><font color="#00000a"><span lang="EN-US" style="font-size: 9pt"><o:p></o:p></span></font></p>
<p class="a" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-size: medium"><span style="font-family: 微软雅黑; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'"><font face="Times New Roman" color="#00000a">共五组数据。所有输入保证合法。</font></span></span><span lang="EN-US" style="font-size: 9pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: 微软雅黑"><o:p></o:p></span></p>
<p></p></p><hr/><h3>题目来源</h3><p>By FancyCoder0</p>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				
			</section>
		</div>
	</main>

	<div class="fbtn-container">
		<div class="fbtn-inner">
			<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light waves-effect" data-toggle="dropdown" aria-expanded="true"><span class="fbtn-text fbtn-text-left">Menu</span><span class="fbtn-ori icon">apps</span><span class="fbtn-sub icon">close</span></a>
			<div class="fbtn-dropup">
				<a class="fbtn fbtn-brand waves-attach waves-circle waves-light waves-effect" href="../list.html" target="_self"><span class="fbtn-text fbtn-text-left">题目列表</span><span class="icon">menu</span></a>
				<a class="fbtn fbtn-green waves-attach waves-circle waves-effect" href="../index.html" target="_self"><span class="fbtn-text fbtn-text-left">返回主页</span><span class="icon">home</span></a>
				<a class="fbtn waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/submitpage.php?id=3568" target="_blank"><span class="fbtn-text fbtn-text-left">提交代码</span><span class="icon">send</span></a>
				<a class="fbtn fbtn-orange waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/wttl/wttl.php?pid=3568" target="_blank"><span class="fbtn-text fbtn-text-left">试题讨论</span><span class="icon">chat</span></a>
				
			</div>
		</div>
	</div>

	<!-- js -->
	<script src="../js/jquery.min.js"></script>
	<script src="../js/base.min.js"></script>
	<script src="../js/project.min.js"></script>
</body>
</html>